package com.ruoyi.system.web.feign;

import com.ruoyi.domain.request.EsHouseRequest;
import com.ruoyi.domain.result.Result;
import com.ruoyi.domain.vo.EsHouse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;

/**
 * @author 姚炜琦
 * @Classname GoToSearch
 * @Description TODO
 * @Date 2022/10/26 19:39
 */
@FeignClient(value = "ruoyi-search",path = "/search")
public interface GoToSearchController {
    /**
     * 携带city信息去search服务查询房源信息
     * @param esHouseRequest
     * @return
     */
    @PostMapping("/esHouseList")
    @ResponseBody
    public Result<ArrayList<EsHouse>> esHouseList(@RequestBody EsHouseRequest esHouseRequest);
}
